<template>
  <div class="header">
    <div class="logo">
      <div class="logo-img"><img src="../../../assets/img/logo.png" alt=""></div>
      <div class="logo-text">
        <p class="ch">广西宝芝堂药业有限责任公司</p>
        <p class="en">Guangxi Baozhitang Pharmaceutical Co., Ltd</p>
      </div>
    </div>
    <div class="nav">
      <div v-for="item in navs" :key="item.title">
        <router-link :to="item.url" tag="span">{{ item.title }}</router-link>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Index',
  data() {
    return {
      navs: [
        {
          url: "/",
          title: "首页"
        },
        {
          url: "/culture",
          title: "企业文化"
        },
        {
          url: "/drugs",
          title: "药品展示"
        },
        {
          url: "/about",
          title: "联系我们"
        }
      ]
    };
  },
  created() {
  },
  methods: {
  }
};
</script>

<style scoped lang="less">
*{
  margin: 0;
  padding: 0;
}
.header {
  display: flex;
  width: 100%;
  .logo {
    flex: 1;
    font-size: 25px;
    display: flex;
    align-items: center;
    padding-left: 100px;
    
    .logo-img{
      padding: 10px 0px;
    }
    .logo-text{
      font-family: Arial,Helvetica,sans-serif;
      font-weight: 900;
      font-size: 20px;
      .ch{
        font-size: 30px;
      }
    }
  }
  .nav {
    flex: 1;
    display: flex;
    & > div {
      height: 100%;
      span {
        display: block;
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 700;
        padding: 0 35px;
        transition: all 0.1s;
        cursor: pointer;
        &:hover{
          font-size: 25px;
        }
      }
    }
  }
}
</style>
